package com.match.util;

public class TimerUtil {
	
	private static TimerUtil timer;
	
	private static Long startTs;
	
	private TimerUtil(){
		startTs = System.currentTimeMillis();
	}
	
	public static void init(){
        if(timer == null){
        	timer = new TimerUtil();
        }
    }
	
	public static Long getDuration() {
		return System.currentTimeMillis()-startTs;
	}
	
}
